package com.drinkian.business.room.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import com.drinkian.authentication.entity.po.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("trans_room")
public class Room {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long uploaderId;
    private String title;
    private String address;
    private String description;
    private String price;
    private String label;
    private Integer status;
    @TableLogic
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    @TableField(exist = false)
    private List<RoomPicture> imageList;
    @TableField(exist = false)
    private User uploader;
}
